package com.realgodo.site.entity.application.communication;

import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;

@Entity(name = "Reply")
@Table(name = "reply")
@Inheritance(strategy = InheritanceType.JOINED)
@PrimaryKeyJoinColumn(name = "id", referencedColumnName = "id")
public class Reply extends Communication{

	/***/
	private static final long serialVersionUID = 9091670754619634398L;
	
	/***/
	private Commentary commentary;

	
	@ManyToOne
	@JoinColumn(name = "commentary_id", referencedColumnName = "id", nullable = false)
	public Commentary getCommentary() {
		return commentary;
	}

	public void setCommentary(Commentary commentary) {
		this.commentary = commentary;
	}
	



	
	
	
	
	

}
